package com.snailxr.base.task.service;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import com.snailxr.base.task.dao.impl.BSZNDaoImpl;
import com.snailxr.base.task.domain.jx.BSZN;

@Service("bsznService")
public class BSZNService {

public final Logger log = Logger.getLogger(this.getClass());
	
	@Resource(name="bsznDaoImpl")
	private BSZNDaoImpl bsznDaoImpl;
	
	/**
	 * 删除全部
	 */
	public void deleteAll(){
		bsznDaoImpl.deleteAll();
	}
	
	/**
	 * 插入一条
	 */
	public void insert(BSZN bszn){
		bsznDaoImpl.insert(bszn);
	}
}
